package com.thy.controller;

import com.hospital.common.base.Result;
import com.hospital.common.pojo.TQualificationType;
import com.thy.service.TQualificationTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 执业类别接口
 * @author yhn
 * @version 1.0
 */
@RestController
@RequestMapping("/qualificationType")
public class QualificationTypeController {
    @Autowired
    private TQualificationTypeService tQualificationTypeService;

    /**
     * 查询所有执业类别
     */
    @GetMapping("/queryAll")
    public Result<List<TQualificationType>> queryAll(){
        return Result.success(tQualificationTypeService.queryAll());
    }
}
